package com.markus.basic.设计模式.装饰者模式;

/**
 * Author:markusZhang
 * Date:Create in 2020/8/31 10:22
 * todo:
 */
public class Client {
    public static void main(String[] args) {
        Shape circle = new Circle();
        ShapeDecorator decorator = new RedShapeDecorator(circle);
        decorator.draw();

        Shape rectangle = new Rectangle();
        ShapeDecorator decorator1 = new RedShapeDecorator(rectangle);
        decorator1.draw();
    }
}
